# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-colorscript
_pkgname=colorscript
pkgver=37.b98ec07
pkgrel=3
pkgdesc='A scripting language for designing custom ASCII banners.'
arch=('any')
url='https://pypi.org/project/colorscript/#files'
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools')
source=("$pkgname::git+https://github.com/EntySec/ColorScript.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  python setup.py build
}

package() {
  cd $pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

